<?php

declare(strict_types=1);

namespace App\Activity\Model;

use Mine\MineModel;

/**
 * @property int $id ID
 * @property int $award_type 1:产品，2:金币
 * @property int $award_value 奖品值-类型1:产品id,2:金额
 * @property int $receive_num 领取人数
 * @property string $product_name 产品名称
 * @property int $create_time 创建时间
 * @property int $update_time 更新时间
 */
class ActivityFirst extends MineModel
{
    protected ?string $dateFormat = 'U';
    const CREATED_AT = 'create_time';
    const UPDATED_AT = 'update_time';
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'activity_first';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'award_type', 'award_value', 'receive_num', 'product_name', 'create_time', 'update_time'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'award_type' => 'integer', 'award_value' => 'integer', 'receive_num' => 'integer', 'create_time' => 'integer', 'update_time' => 'integer'];
}
